/*
 * @Author: your name
 * @Date: 2021-11-03 15:02:30
 * @LastEditTime: 2021-11-05 10:40:48
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \datav\src\components\datav\data\right6.js
 */
import * as echarts from 'echarts'
const option = {
    // backgroundColor: '#00265f',
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    grid: {
        top: '15%',
        right: '3%',
        left: '5%',
        bottom: '12%'
    },
    xAxis: [{
        type: 'category',
        data: ['晋江', '南安', '安溪', '德化', '惠安', '石狮', '永春'],
        axisLine: {
            lineStyle: {
                color: '#FFFFFF'
            }
        },
        axisLabel: {
            margin: 10,
            color: '#669DFF',
            textStyle: {
                fontSize: 18
            },
        },
        axisTick: {
            show: false
        }
    }],
    yAxis: [{
        axisLabel: {
            fontSize: 18,
            formatter: '{value}',
            color: '#669DFF',
        },
        axisTick: {
            show: false
        },
        axisLine: {
            show: false,
            lineStyle: {
                color: 'rgba(0,186,255,.6)'
            }
        },
        splitLine: {
            lineStyle: {
                color: 'rgba(255,255,255,0.12)'
            }
        }
    }],
    series: [{
        type: 'bar',
        data: [80, 80, 97, 53, 95, 26, 72],
        barWidth: '28px',
        itemStyle: {
            normal: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(0,244,255,1)' // 0% 处的颜色
                }, {
                    offset: 1,
                    color: 'rgba(0,77,167,1)' // 100% 处的颜色
                }], false),
                shadowColor: 'rgba(0,160,221,1)',
                shadowBlur: 4,
            }
        },
        label: {
            normal: {
                show: true,
                lineHeight: 30,
                formatter: '{c}',
                position: 'top',
                textStyle: {
                    color: '#00D6F9',
                    fontSize: 20
                }

            }
        }
    }]
};

export default option